package users;

/**
 * Description: denotes a representation of a librarian. It haves the same behavior than the User, but haves some extra
 * features too.
 */
public class LibrarianRole extends UserRole {

    // ---------INSTANCE VARIABLES-----------------------------------------//

    private static final long serialVersionUID = 1L;

    private static LibrarianRole uniqueInstance = new LibrarianRole();

    // ---------CONSTRUCTORS------------------------------------------------//

    public static LibrarianRole getInstance() {

        return uniqueInstance;
    }

    // ---------ACCESSORS---------------------------------------------------//

    // ---------OTHER BEHAVIOUR---------------------------------------------//

    public void registerNewBookCopies(final int anISBN, final int copies) {
        // GOOGLE BOOKS API call
    }

    // NO SE USA PORQE YA NO HAY HANDLER
    // public void registerNewBookCopies(final String aTitle, final String
    // aIsbn, final String aDecription,
    // final Publisher aPublisher, final List<Author> anAuthors, final
    // List<Category> aCategories, final int copies) {
    // // No checkeo por ISBN si el libro ya esta porque eso va en el
    // // controller
    // BookInfo bookInfo = new BookInfo(aTitle, aIsbn, aDecription, aPublisher,
    // anAuthors, aCategories);
    // //this.booksHandler.addCopiesOfBook(bookInfo, copies);
    // }

    @Override
    public String toString() {
        return "Librarian";
    }

}
